Skip to content

Fix top-level await in server.js causes error in Phusion Passenger #482

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

jakob-info
Copy link
Contributor

@jakob-info jakob-info commented Apr 9, 2025

Phusion Passenger application server, which is used by Plesk, can't handle top-level await. Wrapping all code in server.js into an async function and calling it fixes that. Fixes #481

Checklist

  • I have read the contributing guidelines.
  • My code is of good quality and follows the coding standards of the project.
  • I have tested my changes, and they work as expected.

Thank you for your contribution! 🎉

@daveearley
Copy link
Contributor

Thank you!

@daveearley daveearley merged commit 7ce50b2 into HiEventsDev:develop Apr 12, 2025
1 check passed
@github-actions github-actions bot locked and limited conversation to collaborators Apr 12, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🐛Phusion Passenger Server can't hanlde await keyword at document root
2 participants